package com.atguigu.lease.web.admin.service;

import com.atguigu.lease.model.entity.LeaseAgreement;
import com.atguigu.lease.web.admin.vo.agreement.AgreementQueryVo;
import com.atguigu.lease.web.admin.vo.agreement.AgreementVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author liubo
 * @description 针对表【lease_agreement(租约信息表)】的数据库操作Service
 * @createDate 2023-07-24 15:48:00
 */
public interface LeaseAgreementService extends IService<LeaseAgreement> {

    /**
     * 根据条件分页查询租约列表
     *
     * @param page    分页信息
     * @param queryVo 查询条件
     * @return 当前页信息
     */
    IPage<AgreementVo> getLeaseAgreementByQuery(IPage<AgreementVo> page, AgreementQueryVo queryVo);

    /**
     * 根据id查询租约信息
     *
     * @param id id
     * @return 租约信息
     */
    AgreementVo getAgreementById(Long id);
}
